Skip to main content

PAN to CIN Details API

This document outlines the details of the PAN to CIN Details API.

API Description

Objective

The PAN to CIN Details API accepts a PAN (Permanent Account Number) as input and retrieves the corresponding Corporate Identification Number (CIN) details.

InputOutput
The PAN and consentDetails about:
  • CIN
  • Company name
  • State of incorporation
  • Incorporation date
  • Company status
The complete list of output fields is available in the Success Response Details section

API URL

https://ind-engine.thomas.hyperverge.co/v1/panToCinDetails

API Endpoint

panToCinDetails

Overview

The API is RESTful and uses standard HTTP verbs and status codes. The responses are in JSON format and you should send all data in JSON format through a POST request. This API retrieves verified CIN Details using PAN Number.

Authentication

You need a unique pair of application ID ( appId ) and application key (appKey) from HyperVerge to verify your identity for accessing the API.

API Request Details

Method - POST

Headers

ParameterMandatory or OptionalDescriptionValid Values
content-type Mandatory This parameter defines the media type for the request payload.application/json
appIdMandatoryThe application ID shared by HyperVergeNot Applicable - this is a unique value
appKeyMandatoryThe application key shared by HyperVergeNot Applicable - this is a unique value
transactionIdMandatoryThe unique ID for the customer journey.Not Applicable - this is a unique value related to a transaction in your application

Input

The following table provides the details of the parameters required for the API's request body:

ParameterMandatory or OptionalDescriptionAllowed ValuesDefault Value
panMandatoryThe Permanent Account Number (PAN)A 10-character alphanumeric codeNot Applicable
consentMandatoryThe consent provided by the user to retrieve CIN detailsY or NNot Applicable

Request

The following code snippet demonstrates a standard curl request for the API:

curl --location --request POST 'https://ind-engine.thomas.hyperverge.co/v1/panToCinDetails' \
--header 'Content-Type: application/json' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--data '{
"pan": "<Enter_the_PAN>",
"consent": "<Enter_Y_or_N>"
}'

Success Response

The following code snippet demonstrates a success response from the API:

{
"status": "success",
"statusCode": 200,
"result": {
"cin": "<Corporate_Identification_Number>",
"company": "<Company_Name>",
"state": "<State_Of_Incorporation>",
"incorporation_date": "<Incorporation_Date_In_DD/MM/YYYY_Format>",
"company_status": "<Company_Status>"
},
"metadata": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Success Response Details

The following table outlines the details of the success response from the API:

ParameterTypeDescription
statusstringThe status of the API request indicating success or failure
statusCodeintegerThe HTTP status code returned for the API request
resultobjectThe main response object containing all CIN-related information
cinstringThe Corporate Identification Number (CIN) assigned to the company
companystringThe registered legal name of the company
statestringThe state in which the company is registered
incorporation_datestringThe date on which the company was incorporated in DD/MM/YYYY format
company_statusstringThe current operational status of the company (e.g., Active, Inactive)
metadataobjectContains metadata information about the API request
requestIdstringThe unique identifier for the API request
transactionIdstringThe transaction ID associated with the API request

Error Responses

{
"message": "Input Validation Error: requires property \"pan\"",
"statusCode": 400,
"status": "failure"
}
{
"status": "failure",
"statusCode": 400,
"error": "consent is invalid",
"metadata": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Error Response Details

A failure or error response contains a failure status with a relevant status code and error message.
The following table lists all error responses:

Status CodeError MessageError DescriptionError Resolution
400Input Validation Error: requires property "pan"The PAN field is missing in the request payloadInclude the pan field in the request body with a valid PAN value
400Input Validation Error: requires property "consent"The consent field is missing in the request payloadInclude the consent field in the request body with a value of Y or N
400PAN is requiredThe PAN field is present but emptyProvide a valid PAN value in the pan field
400Unsupported PAN typeThe PAN type is not supported for this APIEnsure the PAN belongs to a company entity type that is supported by this API
400Input Validation Error: consent is not one of enum values: Y,NThe consent value is empty or not among allowed valuesSet the consent field to either Y or N
400consent is invalidThe consent value is invalid (e.g., N)Set the consent field to Y to proceed with the API request
400Invalid PAN formatThe PAN does not match the required PAN formatVerify the PAN format is correct (10-character alphanumeric code) and try again
401Missing/Invalid credentialsThe request is either missing the mandatory appId and appKey combination or has invalid valuesVerify and provide valid appId and appKey credentials
401Authkey is invalidThe provided authentication key is invalid or expiredVerify the authentication key is correct and has not expired. Contact HyperVerge support if needed
404No record foundThe provided PAN does not exist in the source systemVerify the PAN is correct and exists in the system. Ensure the PAN is associated with a company entity
422Inactive PANThe PAN exists but is marked inactiveThe PAN is inactive and cannot be used for this operation. Use an active PAN or contact the company for updated information
500Internal Server ErrorAn internal server error occurred while processing the requestCheck the request headers or contact the HyperVerge team for resolution
503External source downtimeThe upstream source is unavailable or downRetry the request after some time or contact the HyperVerge team if the issue persists
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: